package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.dao.CarDao;
import com.lanqiao.javaparkinglot.entity.Car;
import com.lanqiao.javaparkinglot.service.CarService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    CarDao carDao;

    @Override
    public List<Car> findcar() {
        return carDao.findcar();
    }

    @Override
    public void addcar(Car car) {
        carDao.addcar(car);
    }

    @Override
    public void updates(Car car) {
        carDao.updates(car);
    }

    @Override
    public void deletecar(Long car_eno) {
        carDao.deletecar(car_eno);
    }
}
